package com.code.wifi.listener;

/**
 * Created by ZJM on 2017/3/30.
 * <p>
 * 因为无法直接调用 WifiManager 中的ActionListener
 * 利用发射机制来调用自己定义的接口，依旧命名为ActionListener
 */

public interface ActionListener {
    /**
     * The operation succeeded
     */
    void onSuccess();

    /**
     * The operation failed
     *
     * @param reason The reason for failure could be one of {ERROR IN_PROGRESS,BUSY}
     */
    void onFailure(int reason);
}
